<template>
  <div>
    <Children></Children>
  </div>
</template>

<script>
import Children from '@/components/ParentCom.vue'

export default {
  components: {
    Children
  },
  data() {
    return {
      a: 1
    }
  },
  methods: {
    hello() {
      alert("被子组件调用");
    }
  }
}
</script>